package com.quickcancellation.crm.service.impl;

import com.quickcancellation.crm.pojo.dto.PageDto;
import com.quickcancellation.crm.pojo.entity.Stock;
import com.quickcancellation.crm.mapper.StockMapper;
import com.quickcancellation.crm.service.IStockService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-03-04
 */
@Service
public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements IStockService {

    @Resource
    private StockMapper stockMapper;

    @Override
    public List<Map> getStockList(PageDto<Map> pageDto) {
        return stockMapper.getStockList(pageDto);
    }

    @Override
    public Long getStockListCount(PageDto<Map> pageDto) {
        return stockMapper.getStockListCount(pageDto);
    }
}
